package com.lib.model.dto;

import java.io.Serializable;

public class InformationDto implements Serializable {
	
/*
 * CREATE TABLE information
(
	information_num  NUMBER(3)  NOT NULL ,
	title  VARCHAR2(100)  NULL ,
	contents  VARCHAR2(2000)  NULL ,
	information_date  DATE  NULL ,
	count  NUMBER(3)  NULL ,
	id  VARCHAR2(100)  NOT NULL 
);


CREATE  UNIQUE INDEX pk_information_num ON information
(
	information_num  ASC
);


ALTER TABLE information
	ADD CONSTRAINT  pk_information_num PRIMARY KEY (information_num);

 *
 */
	private int information_num; 
	private String title;
	private String contents;
	private String information_date;
	
	private int count;
	private String id;
	
	public int getInformation_num() {
		return information_num;
	}
	public void setInformation_num(int informationNum) {
		information_num = informationNum;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContents() {
		return contents;
	}
	public void setContents(String contents) {
		this.contents = contents;
	}
	public String getInformation_date() {
		return information_date;
	}
	public void setInformation_date(String informationDate) {
		information_date = informationDate;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public InformationDto() {}
	public InformationDto(int informationNum, String title, String contents,
			String informationDate, int count, String id) {
		this.information_num = informationNum;
		this.title = title;
		this.contents = contents;
		this.information_date = informationDate;
		this.count = count;
		this.id = id;
	}
	
	@Override
	public String toString() {
		return "InformationDto [contents=" + contents + ", count=" + count
				+ ", id=" + id + ", information_date=" + information_date
				+ ", information_num=" + information_num + ", title=" + title
				+ "]";
	}	
	
	
}
